package asia.hymsk.spring.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 花于陌上开
 */
@Data
@Component
@ConfigurationProperties(prefix = "asia.hymsk.kafka")  //prefix为前缀
public class KafkaProperties {
    private String host;
    private String topic;
}


